/** 全局样式 */
@import './element.scss';

* {
  box-sizing: border-box;
}

body {
  background-color: #eef2fb;
  width: 100vw;
  height: 100vh;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
ol,
dl {
  list-style: none;
  margin: 0;
  padding: 0;
}

// 修改滚动样式

*::-webkit-scrollbar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  height: 5px;
  width: 5px;
}


/*定义滚动条轨道 内阴影+圆角*/

*::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}


/*定义滑块 内阴影+圆角*/

*::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
}

img {
  object-fit: cover;
}

/** 
  flex布局相关
*/
.d_f {
  display: flex;
}

// 横纵轴默认包含 ‘display: flex;’
.d_fd_column {
  display: flex;
  flex-direction: column;
}

.flex {
  flex: 1;
}

.d_fw_w {
  flex-wrap: wrap;
}

.d_fa_c {
  align-items: center;
}

.d_fj_c {
  justify-content: center;
}

// 其他flex不常用样式单独写吧
/** 
  宽高相关
*/

.h_100b {
  height: 100%;
}

.w_100b {
  width: 100%;
}

.w_50b {
  width: 50%;
}

.w_25b {
  width: 25%;
}

.w_20b {
  width: 20%;
}

/** 
  间距相关
*/
.mt_5 {
  margin-top: 5px;
}

.mt_10 {
  margin-top: 10px;
}

.mr_5 {
  margin-right: 5px;
}

.mr_10 {
  margin-right: 10px;
}

.mr_20 {
  margin-right: 20px;
}

.ml_5 {
  margin-left: 5px;
}

.ml_10 {
  margin-left: 10px;
}

.mt_20 {
  margin-top: 20px;
}

.mt_30 {
  margin-top: 30px;
}

.mt_40 {
  margin-top: 40px;
}

.mb_10 {
  margin-bottom: 10px;
}

.p_10 {
  padding: 10px;
}

.p_20 {
  padding: 20px;
}

.pl_10 {
  padding-left: 10px;
}

.pl_20 {
  padding-left: 20px;
}

.pl_30 {
  padding-left: 30px;
}

.pr_30 {
  padding-right: 30px;
}

.pr_10 {
  padding-right: 10px;
}

.pr_20 {
  padding-right: 20px;
}

.pt_10 {
  padding-top: 10px;
}

.pt_20 {
  padding-top: 20px;
}

.pt_15 {
  padding-top: 15px;
}

/** 
  字号相关
*/
.fs_1rem {
  font-size: 1rem;
}

.fs_1-5rem {
  font-size: 1.5rem;
}

.fs_1-25rem {
  font-size: 1.25rem;
}

.fs_16 {
  font-size: 16px;
}

.fs_14 {
  font-size: 14px;
}

.fs_12 {
  font-size: 12px;
}

.fw_b {
  font-weight: bold;
}

.fw_b {
  font-weight: bold;
}

.fw_600 {
  font-weight: 600;
}

/** 
  超出隐藏相关
*/
.scroll {
  overflow: auto;
}

.scroll_y {
  overflow-y: auto;
}

.scroll_x {
  overflow-x: auto;
}

.linehidden_1 {
  // 一行隐藏
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.linehidden_1_1 {
  // 一行超出隐藏
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linehidden_2 {
  // 两行隐藏
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.linehidden_3 {
  // 三行隐藏
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.linehidden_5 {
  // 五行隐藏
  overflow: hidden;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/** 
  颜色相关
*/

$color1: #fff;
$color2: #2f6bee;
$color3: #f14647;
$color4: #38b35d;
$color5: #d00c6a;

.color1 {
  color: $color1  !important;
}

.bg_color1 {
  background-color: $color1;
}

.color2 {
  color: $color2  !important
}

.bg_color2 {
  background-color: $color2;
}

.color3 {
  color: $color3  !important
}

.bg_color3 {
  background-color: $color3;
}

.color4 {
  color: $color4  !important
}

.color5 {
  color: $color5  !important
}